package Library.Login;

import Library.*;
import java.rmi.*;

/**
 *
 */
public interface ILoginGateway extends Remote
{
   // String foo() throws RemoteException;
    
    /**
     *
     * @param username
     * @param password
     * @return
     * @throws RemoteException
     */
    int createAccount(String username, int password)
        throws RemoteException;
    
    /**
     *
     * @param ticket
     * @throws RemoteException
     */
    void logout(ITicket ticket)
        throws RemoteException;
    
    /**
     *
     * @param username
     * @param password
     * @return
     * @throws RemoteException
     */
    ActionResult<ITicket> login(String username, int password)
        throws RemoteException;
}
